<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet">
</head>

<body>
    <div id="myApp">
        <h3>游戏列表</h3>
        <!-- Virtual DOM -->
        <h1 v-if="seen">tes</h1>
        <div v-for="(item,index) in games">
            {{item.title}}:{{item.price}}+{{index}}
        </div>
    </div>
    <script>
        var myApp = new Vue({
            el: '#myApp',
            data: {
                seen: true,
                games: [
                    {
                        title: '勇者斗恶龙',
                        price: 400
                    },
                    {
                        title: '超级马里奥',
                        price: 380
                    },
                    {
                        title: '我的世界',
                        price: 99
                    },
                ],
            },

        });
    </script>
</body>

</html>